<?php

namespace app\common\model;

use think\Model;

/**
 * 会员积分模型
 */
class UserScoreLog Extends Model
{
    protected $append = [
        'createtime_text'
    ];

    public function getCreateTimeTextAttr($value, $data)
    {
        $value = $value ? $value : $data['createtime'];
        return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
    }

}